package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 部门对象 system_dept
 *
 * @author ruoyi
 * @date 2025-02-17
 */
public class SystemDept extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门id */
    private Integer id;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String name;

    /** 部门编码 */
    @Excel(name = "部门编码")
    private String sn;

    /** 所在地区id */
    @Excel(name = "所在地区id")
    private String regionIds;

    /** 所在地区名称 */
    @Excel(name = "所在地区名称")
    private String regionNames;

    /** 部门类型 */
    @Excel(name = "部门类型")
    private String type;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long sort;

    /** 创建者 */
    @Excel(name = "创建者")
    private String creator;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updater;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setRegionIds(String regionIds)
    {
        this.regionIds = regionIds;
    }

    public String getRegionIds()
    {
        return regionIds;
    }
    public void setRegionNames(String regionNames)
    {
        this.regionNames = regionNames;
    }

    public String getRegionNames()
    {
        return regionNames;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }
    public void setUpdater(String updater)
    {
        this.updater = updater;
    }

    public String getUpdater()
    {
        return updater;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sn", getSn())
            .append("parentId", getParentId())
            .append("regionIds", getRegionIds())
            .append("regionNames", getRegionNames())
            .append("type", getType())
            .append("sort", getSort())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("creator", getCreator())
            .append("updater", getUpdater())
            .append("deleted", getDeleted())
            .toString();
    }
}
